PrintButtonClicked Event (Window Object)

Sample Code - PrintButtonClicked Event

The PrintButtonClicked event occurs when the Print button is clicked.

Syntax

Event PrintButtonClicked (useDefault As Boolean)

Parameters

useDefault

Specifies Boolean value indicating whether the default settings should be used. Assign useDefault = FALSE if not using default behavior defined in CPEAUT (that is, if you do not want the Print dialog box to appear).

Remarks

Before enabling this event, the HasPrintButton property of the PrintWindowOptions Object, must be set to TRUE. This event is enabled by using the PrintWindowButtonEnabled property of the EventInfo Object, obtained through the EventInfo property of the Report Object. For more information, see Object Model Events.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com